﻿<UserControl x:Class="WGMClient.Views.SettingsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:thirdarty="clr-namespace:DropDownCustomColorPicker;assembly=CustomColorPicker"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    >
    <Grid  Margin="10,10,10,10">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="130" />
            <ColumnDefinition Width="270" />
            <ColumnDefinition  />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="50"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="System Font" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="1" Foreground="#FF222222" FontFamily="Verdana" Text="System Font Size"  VerticalAlignment="Center"/>
        <TextBlock Grid.Row="2" Foreground="#FF222222" FontFamily="Verdana" Text="System Font Options"  VerticalAlignment="Center"/>
        <TextBlock Grid.Row="3" Grid.ColumnSpan="2" x:Name="_fontSampleText" Foreground="#FF222222" FontFamily="Verdana" Text="Sample Text"  VerticalAlignment="Center" HorizontalAlignment="Center" />
        <ComboBox  Grid.Column="1" x:Name="_systemFontChooser" ItemsSource="{x:Static Fonts.SystemFontFamilies}" MaxDropDownHeight="200"  HorizontalAlignment="Stretch" Height="20" VerticalAlignment="Center" SelectionChanged="OnFontSelectionChanged" />
        <ComboBox Grid.Row="1" Grid.Column="1" x:Name="_systemFontSizeChooser"  MaxDropDownHeight="200"  HorizontalAlignment="Stretch" Height="20" VerticalAlignment="Center" SelectionChanged="OnFontSelectionChanged" >
            <sys:Int32>10</sys:Int32>
            <sys:Int32>11</sys:Int32>
            <sys:Int32>12</sys:Int32>
            <sys:Int32>13</sys:Int32>
            <sys:Int32>14</sys:Int32>
            <sys:Int32>15</sys:Int32>
            <sys:Int32>16</sys:Int32>
            <sys:Int32>17</sys:Int32>
            <sys:Int32>18</sys:Int32>
            <sys:Int32>19</sys:Int32>
            <sys:Int32>20</sys:Int32>
        </ComboBox>
        <StackPanel   Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left">
            <CheckBox x:Name="_fontBoldChk" Grid.Row="3" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Right" Foreground="#FF222222" Background="Transparent" Margin="0,0,12,0" Checked="OnFontOptionChk" Unchecked="OnFontOptionChk">
                <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Bold" VerticalAlignment="Center"/>
            </CheckBox>
            <CheckBox x:Name="_fontItalicChk" Grid.Row="3" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Right" Foreground="#FF222222" Background="Transparent"  Checked="OnFontOptionChk" Unchecked="OnFontOptionChk">
                <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Italics" VerticalAlignment="Center"/>
            </CheckBox>
            <Separator Height="30" Width="1" Background="LightGray" Margin="10,0,10,0"/>
            <TextBlock  Foreground="#FF222222" FontFamily="Verdana" Text="Colour" Margin="0,0,5,0" VerticalAlignment="Center"/>
            <thirdarty:CustomColorPicker x:Name="_systemFontColourChooser" Height="25" VerticalAlignment="Center" HorizontalAlignment="Right" SelectedColorChanged="OnFontColourChanged"/>

        </StackPanel>

        <CheckBox x:Name="_showDateTimeStampChk" Grid.Row="5" Grid.ColumnSpan="2" VerticalAlignment="Center"  Foreground="#FF222222" Background="Transparent" Margin="0,0,12,0" >
            <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Show Timestamp in Messages" VerticalAlignment="Center"/>
        </CheckBox>
        <CheckBox x:Name="_showImagesChk" Grid.Row="6" Grid.ColumnSpan="2" VerticalAlignment="Center"  Foreground="#FF222222" Background="Transparent" Margin="0,0,12,0" >
            <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Show Contact Images" VerticalAlignment="Center"/>
        </CheckBox>
        <CheckBox x:Name="_saveGlobalHistoryChk" Grid.Row="7" Grid.ColumnSpan="2" VerticalAlignment="Center"  Foreground="#FF222222" Background="Transparent" Margin="0,0,12,0" >
            <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Save Global History" VerticalAlignment="Center"/>
        </CheckBox>
        <CheckBox x:Name="_savePrivateHistoryChk" Grid.Row="8" Grid.ColumnSpan="2" VerticalAlignment="Center"  Foreground="#FF222222" Background="Transparent" Margin="0,0,12,0" >
            <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Save Private History" VerticalAlignment="Center"/>
        </CheckBox>
        <CheckBox x:Name="_showOnlinePopupChk" Grid.Row="9" Grid.ColumnSpan="2" VerticalAlignment="Center"  Foreground="#FF222222" Background="Transparent" Margin="0,0,12,0" >
            <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Show Popup For Online User" VerticalAlignment="Center"/>
        </CheckBox>
        <CheckBox x:Name="_showOfflinePopupChk" Grid.Row="10" Grid.ColumnSpan="2" VerticalAlignment="Center"  Foreground="#FF222222" Background="Transparent" Margin="0,0,12,0" >
            <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Show Popup For Offline User" VerticalAlignment="Center"/>
        </CheckBox>
        <CheckBox x:Name="_showMessagePopupChk" Grid.Row="11" Grid.ColumnSpan="2" VerticalAlignment="Center"  Foreground="#FF222222" Background="Transparent" Margin="0,0,12,0" >
            <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Show Popup For New Message" VerticalAlignment="Center"/>
        </CheckBox>
        <CheckBox x:Name="_useWindowAnimationsChk" Grid.Row="12" Grid.ColumnSpan="2" VerticalAlignment="Center"  Foreground="#FF222222" Background="Transparent" Margin="0,0,12,0" >
            <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Window Animations" VerticalAlignment="Center"/>
        </CheckBox>
        <CheckBox x:Name="_windowAlwaysOnTop" Grid.Row="13" Grid.ColumnSpan="2" VerticalAlignment="Center"  Foreground="#FF222222" Background="Transparent" Margin="0,0,12,0" >
            <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Window Always On Top" VerticalAlignment="Center"/>
        </CheckBox>
        <StackPanel Orientation="Horizontal" Grid.Row="14" Grid.ColumnSpan="2" VerticalAlignment="Center" >
            <CheckBox x:Name="_showImagePreviewChk" Margin="0,0,12,0" VerticalAlignment="Center">
                <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Show Image Previews" VerticalAlignment="Center"/>
            </CheckBox>
            <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Width: " VerticalAlignment="Center"/>
            <TextBox x:Name="_imagePreviewWidthTb" Foreground="#FF222222" FontFamily="Verdana" Text="50" Width="35" VerticalAlignment="Center"/>
            <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Height: " VerticalAlignment="Center"/>
            <TextBox x:Name="_imagePreviewHeightTb" Foreground="#FF222222" FontFamily="Verdana" Text="50" Width="35" VerticalAlignment="Center"/>
        </StackPanel>

        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="17" Grid.Column="1" VerticalAlignment="Bottom">
            <TextBlock   Foreground="#FF222222" FontFamily="Verdana" Text="Reset" VerticalAlignment="Center" HorizontalAlignment="Right" Cursor="Hand" MouseLeftButtonDown="OnReset" Margin="0,0,12,0"/>

            <TextBlock   Foreground="#FF222222" FontFamily="Verdana" Text="Commit" VerticalAlignment="Center" HorizontalAlignment="Right" Cursor="Hand" MouseLeftButtonDown="OnCommit" />
            <TextBlock   Foreground="#FF222222" FontFamily="Verdana" Text="Exit Application" Margin="80,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Right" Cursor="Hand" MouseLeftButtonDown="OnExit" />

        </StackPanel>
        <TextBlock x:Name="_versionTB" Grid.Row="0" Grid.RowSpan="20" Grid.ColumnSpan="3" HorizontalAlignment="Right" Grid.Column="0"  Foreground="#FF222222" FontFamily="Verdana" Text="Unkown Version" VerticalAlignment="Bottom"/>

    </Grid>
</UserControl>
